class ChangeGlobalRatingAndRemoveComfortRating < ActiveRecord::Migration
  def self.up
  	rename_column :items, :total_rating, :global_rating
  	remove_column	:items, :comfort_rating
  	remove_column	:item_ratings, :comfort_rating
  end

  def self.down
  	rename_column :items, :global_rating, :total_rating
  	add_column		:items,	:comfort_rating, :float, :default => 0.0
  	add_column		:item_ratings,	:comfort_rating, :float, :default => 0.0
  end
end
